<template>
  <f7-page>
    <f7-navbar title="新闻" back-link></f7-navbar>
    <iframe ref="iframe" frameborder="0" width="100%" style="height: calc(100% - 6px);" :src="$f7route.context"></iframe>
  </f7-page>
</template>
<script>
import { f7Page, f7Navbar } from 'framework7-vue'
export default {
  components: {
    f7Page,
    f7Navbar
  },
  created() {
  	this.$f7.preloader.show()
  },
  mounted() {
  	this.$refs.iframe.onload = () => {        
      this.$f7.preloader.hide()
    }
  }
}
</script>